<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>函数参数的解构特性使用</title>
</head>
<body>
    <script>
        function hd({name:a,age:b}){
            console.log(a,b);
        }
        hd({name:"xiasnn",age:18});


        function show(lesson,{price,click}){
            console.log(lesson,price,click);
        }
        show("css",{price:99,click:299});
    </script>
</body>
</html>